package cn.sofwin.web.blog.entity;

import cn.sofwin.core.entity.IdEntity;

import java.util.Date;

/**
 * 文章实体类
 */
public class Article extends IdEntity {

    private User user;

    private String title;

    private String summary;

    private String content;

    private Date addTime;

    private Integer readTotal;

    private Integer commentTotal;

    private Integer status;

    public Article() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getReadTotal() {
        return readTotal;
    }

    public void setReadTotal(Integer readTotal) {
        this.readTotal = readTotal;
    }

    public Integer getCommentTotal() {
        return commentTotal;
    }

    public void setCommentTotal(Integer commentTotal) {
        this.commentTotal = commentTotal;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Article{" +
                "user=" + user +
                ", title='" + title + '\'' +
                ", summary='" + summary + '\'' +
                ", content='" + content + '\'' +
                ", addTime=" + addTime +
                ", readTotal=" + readTotal +
                ", commentTotal=" + commentTotal +
                ", status=" + status +
                '}';
    }
}
